package com.stuManager.factory;

import com.stuManager.dao.StudentDao;
import com.stuManager.dao.UserDao;

/*
    DaoFactory 工厂方法
    生成user和student两种dao对象
 */
public class DaoFactory {

    public static UserDao getUserDao() {
        return new UserDao();
    }

    public static StudentDao getStudentDao() {
        return new StudentDao();
    }
}
